package com.github.codemperor.api.base;

import java.util.ArrayList;
import java.util.List;

/**
 * 分页的类
 */
public class PageResult<T> {
    private List<T> list = new ArrayList<>();
    private Integer count = 0;

    public PageResult() {
    }

    public PageResult(List<T> list, Integer count) {
        this.list = list;
        this.count = count;
    }

    public List<T> getList() {
        return list;
    }

    public void setList(List<T> list) {
        this.list = list;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }
}
